<template>
  <div class="home">
    <main>
      <router-view></router-view>
    </main>
    <footer>
      <router-link to="/home/homes">
        <i class="icon iconfont icon-shouye"></i>
        <span>首页</span>
      </router-link>
      <router-link to="/home/list">
        <i class="icon iconfont icon-sousuo"></i>
        <span>找房</span>
      </router-link>
      <router-link to="/home/profile">
        <i class="icon iconfont icon-wode"></i>
        <span>我的</span>
      </router-link>
    </footer>
  </div>
</template>

<script>
export default {};
</script>

<style scoped>
.home {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.home main {
  width: 100%;
  flex: 1;
  overflow-y: auto;
}
.home footer {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.home footer a {
  padding: 5px 10px;
  color: #999;
  text-align: center;
  font-size: 14px;
}
.home footer a i {
  display: block;
  font-size: 18px;
}
.home footer a.router-link-active {
  color: lightgreen;
}
</style>